//
//  UIColor+LXCustomColor.m
//  ProjectSource_Demo
//
//  Created by Liu on 15/11/27.
//  Copyright © 2015年 AngryBear. All rights reserved.
//

#import "UIColor+LXCustomColor.h"

@implementation UIColor (LXCustomColor)

+ (UIColor *)colorWithHexRGB:(NSInteger)rgbValue
{
    return [self colorWithHexRGB:rgbValue alpha:1];
}

+ (UIColor *)colorWithHexRGB:(NSInteger)rgbValue alpha:(CGFloat)alpha
{
    return  [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:alpha];
}

+ (UIColor *)appStyleColor
{
    return [UIColor colorWithHexRGB:0xff464e];
}

+ (UIColor *)graylineColor
{
    return HexRGB(0xe0e0e0);
}

+ (UIColor *)grayBG
{
    return HexRGB(0xf2f2f2);
}

@end
